urlencoding
A tiny Rust library for doing URL percentage encoding and decoding. It percent-encodes everything except alphanumerics and -
, _
, .
, ~
.
When decoding +
is not treated as a space. Error recovery from incomplete percent-escapes follows the WHATWG URL standard.
Usage
To encode a string, do the following:
use encode;
To decode a string, it's only slightly different:
use decode;
License
This project is licensed under the MIT license, Copyright (c) 2017 Bertram Truong. For more information see the LICENSE
file.